<?php
function _date( $time, $format = 'Y-m-d' ) {
	return date( $format, $time );
}

//测试控制器类
class IndexController extends Controller {
	//动作方法
	public function index() {
//        echo strtotime('2011-2-12');
//        echo date('Y-m-d',1297440000);
		$this->assign( 'addtime', 1297440000 );
		//显示视图
		$this->display();
	}
}
